import http from './request'
// 获取轮播图
export const getBanner_api = () => http.request({
    url: '/banner',
})
// 推荐歌单
export const getPersonalized_api = (limit = 6) => http.request({
    url: `/personalized?limit=${limit}`
})
// 精选歌单
export const getTopPlaylist_api = (limit = 6) => http.request({
    url: `/top/playlist?limit=${limit}`
})
// 歌单歌曲
export const getPlaylistTrackAll_api = ({ id, limit, offset = 0 }: { id: string, limit?: number, offset?: number }) => http.request({
    url: `/playlist/track/all?id=${id}&limit=${limit}&offset=${offset}`
})
// 歌单详情
export const getPlaylistDetail_api = (id: string) => http.request({
    url: `/playlist/detail?id=${id}`
})
// 排行榜
export const getTopList_api = () => http.request({
    url: '/toplist'
})